package com.myHospital.biz.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.myHospital.biz.DepartmentsBiz;
import com.myHospital.dao.DepartmentsDao;
import com.myHospital.entity.Departments;

@Service("departmentsBiz")
public class DepartmentsBizImpl implements DepartmentsBiz {

	@Autowired
	private DepartmentsDao departmentsDao;
	
	
	public List<Departments> getById(int id) {
		return departmentsDao.getById(id);
	}

	
	public List<Departments> getByDetailId(int hid,int did) {
		return departmentsDao.getByDetailId(hid,did);
	}

}
